package com.tt.payee.utils;

import org.apache.commons.lang3.RandomStringUtils;

/**
 * @author zhaochongsen
 * @Description
 * @date 2020/7/1 14:35
 */
public class CreateCodeUtils {

    private static final String RANDOM_SEED = "23456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
    public static String getRandomCode(int bit) {
        if (bit <= 0) bit = 8;
        return RandomStringUtils.random(bit, RANDOM_SEED);
    }

}
